LayerManager.getNextSuitableLayer Method

Find and select the next best usable layer.